package com.hongyue.zuoYe.tiMu2;

public class test {
    public static void main(String[] args) {
        GPS bm = new BaoMa();
        diaoYong(bm);
    }

    public static void diaoYong(GPS gps) {
        gps.gps();
        if (gps instanceof BaoMa) {
            BaoMa baoMa = (BaoMa) gps;
            baoMa.YunXing();
        }
    }
}
